<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class ArticleType extends Model
{
    protected $table = 'article_type';

    public function getType($index)
    {
        $typeArr = [
            '频道栏目',
            '内容栏目'
        ];
        return $typeArr[$index];
    }
}
